<template>
  <div class="node">{{ data.name }}</div>
</template>

<script setup lang="ts">
const getNode: any = inject('getNode')
const data = ref<any>({})
onMounted(() => {
  const node: any = getNode()
  console.log('🚀 ~ node:', node)
  data.value = { ...node.data }
})
</script>

<style scoped lang="scss">
.node {
  width: 100%;
  height: 100%;
  border: 1px solid red;
}
</style>
